@extends('admin.index')
@section('title','后台分类添加')
 @section('con')
 <div class="row">
 	@if (count($errors) > 0)
	    <div class="alert alert-danger">
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif
    <div class="col-lg-6 col-lg-offset-3">
        <form role="form" method="post" action="{{url('/admin/ad/insert')}}" enctype="multipart/form-data">
            <div class="form-group">
                <label>跳转链接</label>
                <input type="text" class="form-control" id="url" name='url' placeholder="输入广告链接">
                <input type="hidden" id='adopt' name='adopt' value='0'>
            </div>
            <div class="form-group">
                <label>广告图片</label>
                 <input  type="file" name="content"  id='content' value="">
            </div>
            {{ csrf_field() }}
            <button class="btn btn-default" type="submit">提交</button>
            <button class="btn btn-default" type="reset">重置</button>
        </form>
    </div>
 </div>  
 @endsection
